package com.dnui.seven2.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnui.seven2.entity.Buymerch;
import com.dnui.seven2.entity.Merch;
import com.dnui.seven2.service.BuymerchService;
import com.dnui.seven2.mapper.BuymerchMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author fengy
* @description 针对表【buymerch】的数据库操作Service实现
* @createDate 2022-10-19 15:15:44
*/
@Service
public class BuymerchServiceImpl extends ServiceImpl<BuymerchMapper, Buymerch>
    implements BuymerchService{

    @Autowired
    private BuymerchMapper buymerchMapper;
    @Override
    public List<Buymerch> selectAll() {
        //构造条件构造器
        LambdaQueryWrapper<Buymerch> queryWrapper=new LambdaQueryWrapper();
        List<Buymerch> buymerches = buymerchMapper.selectList(null);
        return buymerches;
    }
}




